<template>
	<view class="page">
		<view class="box-item" v-for="(item, ind) in items" :key="ind">
			<view class="item-in">
				<view class="item-left">
					<view class="item-title">{{item.title}}</view>
				</view>
				<view class="item-right">
					<view class="">{{item.value}}</view>
					<view class="right-icon iconfont icon-arr-right" @tap="toOperate" :data-param="item.method"></view>
				</view>
			</view>
		</view>
		
		<button class="login-button" @tap="loginOut">登录</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				items: [{title: '清除缓存',value: 10,method: "clear"},{title: '意见反馈'},{title: '关于我们'},
					{title: '版本说明'},{title: '好评鼓励'}]
			}
		},
		methods: {
			loginOut(){
				
			},
			toOperate(e){
				var param = e.currentTarget.dataset.param;
				if(param == 'clear') {
					uni.clearStorageSync();
					uni.showToast({
						title: "清理缓存成功",
						mask: false,
						duration: 1500
					})
				}
			}
		}
	}
</script>

<style>
	@import url("../../../static/iconfont/iconfont.css");
</style>
